package com.syyo.gulimall.cart.feign;

import com.syyo.common.domain.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ author: wang
 * @ date: 2021/4/21 9:20
 * @ Description:
 */
@FeignClient("gulimall-product")
public interface ProductFeign {

    @GetMapping("/product/skuinfo/{id}")
    ResultVo getSkuInfo(@PathVariable("id") Long id);


    @GetMapping("/product/skusaleattrvalue/stringlist/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skuinfo/price/{skuId}")
    public BigDecimal getPrice(@PathVariable("skuId") Long skuId);
}
